import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Iterator;



public class ControladorClientes {
	 
	public void insertarCliente(Connection con, Cliente cl) {
		Statement st = null;
		try {
			con.createStatement();
			st.executeUpdate("INSERT INTO CLIENTES VALUES('"+cl.getDni()+"','"+cl.getNombre()+"','"+cl.getApellidos()+"')");
		} catch(SQLException e) {
			System.out.println("No se ha iniciar la sentencia SQL");
		} finally {
			if (st != null)
				try {
					st.close();
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
		}
		
	}
	
	public void listarClientes(Connection con){
		
	
		
		
		
	}
}
